package au.com.handsunited.model.validators.address;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

import au.com.handsunited.model.Address;

/**
 *
 * @author arunda
 */
public class AddressValidator implements Validator {

	private static Logger logger = LoggerFactory.getLogger(AddressValidator.class);

	/**
	 * @see org.springframework.validation.Validator#supports(java.lang.Class)
	 */
	@Override
	public boolean supports(Class clazz) {
		return clazz.isAssignableFrom(Address.class);
	}

	/**
	 * @see org.springframework.validation.Validator#validate(java.lang.Object, org.springframework.validation.Errors)
	 */
	@Override
	public void validate(Object target, Errors errors) {

	}

}
